<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- Footer -->
<footer class="footer mt-auto py-3 bg-light">
    <div class="container">
        <div class="text-center">
            <span class="text-muted">© 2024 HRMS System. All rights reserved.</span>
        </div>
    </div>
</footer>

<!-- Bootstrap core JavaScript -->
<script src="${pageContext.request.contextPath}/static/js/jquery-3.6.0.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/bootstrap.bundle.min.js"></script>

<!-- Custom scripts -->
<script>
    // 激活当前导航项
    $(document).ready(function() {
        // 获取当前URL路径
        var path = window.location.pathname;
        
        // 查找所有导航链接
        $('.nav-link').each(function() {
            var href = $(this).attr('href');
            // 如果当前路径包含链接地址，激活该项
            if (path.includes(href)) {
                $(this).addClass('active');
            }
        });
    });
</script>
